package com.whfc.hdc.enums;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-04-08 17:15
 */
public enum FshLight {

    CLOSE(0, "关"),


    OPEN(1, "开");

    private final Integer value;

    private final String desc;

    FshLight(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    public Integer getValue() {
        return value;
    }

    public String getDesc() {
        return desc;
    }

    public static FshLight parseValue(Integer value) {
        if (value == null) {
            return null;
        }
        switch (value) {
            case 0:
                return CLOSE;
            case 1:
                return OPEN;
            default:
                return null;
        }
    }


}
